GXParsePageRange
QuickDraw GX sends theGXParsePageRange
message when a user selects a range of pages for printing. You can override theGXParsePageRange
message to validate a page range. Your override of theGXParsePageRange
message must match the following formal declaration:
OSErr MyParsePageRange (StringPtr fromString, StringPtr toString, gxParsePageRangeResult *result);
fromString
- A pointer to a string representation of the from-page.
toString
- A pointer to a string representation of the to-page.
result
- On return, a value that specifies the result code for the range parsing. The constants for this value are given in the section "Parse Range Results" on page 4-38.
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
QuickDraw GX sends theGXParsePageRange
message to validate that a page range entered by the user is appropriate for the print job.SPECIAL CONSIDERATIONS
You rarely send theGXParsePageRange
message yourself.You must always forward the
GXParsePageRange
message to other message handlers.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help